package com.peanut.baby.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by anonymouslystudio on 2017/7/21.
 */

public class UploadConf implements Serializable{
    @SerializedName("bucketName")
    public String bucketName = "";
    @SerializedName("uploadToken")
    public String uploadToken = "";
    @SerializedName("objectName")
    public String fileInBucketName = "";
    @SerializedName("domain")
    public String domain = "";

    public String   localPath = "";
    public long     duration;
    public boolean  uploadSuccess = false;
    @Override
    public String toString() {
        return "UploadConf{" +
                "bucketName='" + bucketName + '\'' +
                ", uploadToken='" + uploadToken + '\'' +
                ", fileInBucketName='" + fileInBucketName + '\'' +
                '}';
    }

    public String getResultFullUrl(){
        return domain+"/"+fileInBucketName;
    }
}
